<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Hero War: Référence de la classe gfx::Anim</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css">
<link href="../../doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="../../index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="../../namespaces.html"><span>Espaces&nbsp;de&nbsp;nommage</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Fichiers</span></a></li>
      <li><a href="../../examples.html"><span>Exemples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="../../annotated.html"><span>Liste&nbsp;des&nbsp;classes</span></a></li>
      <li><a href="../../hierarchy.html"><span>Hiérarchie&nbsp;des&nbsp;classes</span></a></li>
      <li><a href="../../functions.html"><span>Membres&nbsp;de&nbsp;classe</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="../../d0/d1c/namespacegfx.html">gfx</a>::<a class="el" href="../../df/d6a/classgfx_1_1_anim.html">Anim</a>
  </div>
</div>
<div class="contents">
<h1>Référence de la classe gfx::Anim</h1><!-- doxytag: class="gfx::Anim" -->Implémente la gestion des animation selon le temps.  
<a href="#_details">Plus de détails...</a>
<p>
<code>#include &lt;<a class="el" href="../../de/d81/_anim_8h-source.html">Anim.h</a>&gt;</code>
<p>
<div class="dynheader">
Graphe d'héritage de gfx::Anim:</div>
<div class="dynsection">
<p><center><img src="../../dd/de3/classgfx_1_1_anim__inherit__graph.png" border="0" usemap="#d0/d06/gfx_1_1_anim__inherit__map" alt="Inheritance graph"></center>
<map name="d0/d06/gfx_1_1_anim__inherit__map">
<area shape="rect" href="../../d8/d31/classgfx_1_1_img_anim.html" title="Comme Anim à la diférence près que la classe utilise une image avec tout les sprites..." alt="" coords="5,80,101,107"><area shape="rect" href="../../d0/d63/classgfx_1_1_layer_anim.html" title="Animation où chaque frame est repésenter par une couche de Layer." alt="" coords="125,80,232,107"></map>
<center><font size="2">[<a href="../../graph_legend.html">légende</a>]</font></center></div>

<p>
<a href="../../dd/da2/classgfx_1_1_anim-members.html">Liste de tous les membres</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Fonctions membres publiques</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="516ec8ca7c1d8aa486b169af6b138c18"></a><!-- doxytag: member="gfx::Anim::nextFrame" ref="516ec8ca7c1d8aa486b169af6b138c18" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d6a/classgfx_1_1_anim.html#516ec8ca7c1d8aa486b169af6b138c18">nextFrame</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Change au prochain frame d'animation. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="48f2b3dfd109af44339b3b3fb27ad677"></a><!-- doxytag: member="gfx::Anim::setFrame" ref="48f2b3dfd109af44339b3b3fb27ad677" args="(const unsigned int &amp;count)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d6a/classgfx_1_1_anim.html#48f2b3dfd109af44339b3b3fb27ad677">setFrame</a> (const unsigned int &amp;count)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Change au frame d'animation défini par 'count'. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7493ee0e415284d650ea550cbe670caf"></a><!-- doxytag: member="gfx::Anim::reset" ref="7493ee0e415284d650ea550cbe670caf" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d6a/classgfx_1_1_anim.html#7493ee0e415284d650ea550cbe670caf">reset</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Change au premier frame animation. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="94d2fe57ba0b2973dee45e88e640530b"></a><!-- doxytag: member="gfx::Anim::currentFrame" ref="94d2fe57ba0b2973dee45e88e640530b" args="() const " -->
unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d6a/classgfx_1_1_anim.html#94d2fe57ba0b2973dee45e88e640530b">currentFrame</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retourne le frame d'animation courante. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b43c0bf78e3177e28bc27a594d36eb68"></a><!-- doxytag: member="gfx::Anim::loop" ref="b43c0bf78e3177e28bc27a594d36eb68" args="(const bool &amp;choice)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d6a/classgfx_1_1_anim.html#b43c0bf78e3177e28bc27a594d36eb68">loop</a> (const bool &amp;choice)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Définis si l'animation est en boucle (choice=true). <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6fe4d3cacbc2ba32b84a967677246bbe"></a><!-- doxytag: member="gfx::Anim::isLoop" ref="6fe4d3cacbc2ba32b84a967677246bbe" args="() const " -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d6a/classgfx_1_1_anim.html#6fe4d3cacbc2ba32b84a967677246bbe">isLoop</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retourne si l'animation est joué en boucle. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="79dd5ff2d9497e08e08c7c945b1ccdcd"></a><!-- doxytag: member="gfx::Anim::play" ref="79dd5ff2d9497e08e08c7c945b1ccdcd" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d6a/classgfx_1_1_anim.html#79dd5ff2d9497e08e08c7c945b1ccdcd">play</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Joue l'animation. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="304a61788dc80d57777301a533652d03"></a><!-- doxytag: member="gfx::Anim::stop" ref="304a61788dc80d57777301a533652d03" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d6a/classgfx_1_1_anim.html#304a61788dc80d57777301a533652d03">stop</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Arrete l'animation et remet le compteur à zéro. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="33c2dbc7c2544550b23b93efdbd73284"></a><!-- doxytag: member="gfx::Anim::pause" ref="33c2dbc7c2544550b23b93efdbd73284" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d6a/classgfx_1_1_anim.html#33c2dbc7c2544550b23b93efdbd73284">pause</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Met l'animation en pause et laisse le compteur où il en est. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8b19bc694e7efa05504b51294f567aa7"></a><!-- doxytag: member="gfx::Anim::isPlaying" ref="8b19bc694e7efa05504b51294f567aa7" args="() const " -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d6a/classgfx_1_1_anim.html#8b19bc694e7efa05504b51294f567aa7">isPlaying</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retourne true si l'animation joue. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bdbe43f27fcda4c08f24d9d8873072ef"></a><!-- doxytag: member="gfx::Anim::setDelay" ref="bdbe43f27fcda4c08f24d9d8873072ef" args="(const float &amp;delay)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d6a/classgfx_1_1_anim.html#bdbe43f27fcda4c08f24d9d8873072ef">setDelay</a> (const float &amp;delay)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Définis le délais en seconde entre chaque frame. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1d902a5704096fe75f276f9fb02f1d5f"></a><!-- doxytag: member="gfx::Anim::delay" ref="1d902a5704096fe75f276f9fb02f1d5f" args="() const " -->
float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d6a/classgfx_1_1_anim.html#1d902a5704096fe75f276f9fb02f1d5f">delay</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retourne le délai entre chaque frame. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="35349e1623b7024f52f0aefea15f3112"></a><!-- doxytag: member="gfx::Anim::update" ref="35349e1623b7024f52f0aefea15f3112" args="()" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d6a/classgfx_1_1_anim.html#35349e1623b7024f52f0aefea15f3112">update</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Met à jour l'animation. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="379278a67c62314fd4977bb7c24f89f4"></a><!-- doxytag: member="gfx::Anim::getSize" ref="379278a67c62314fd4977bb7c24f89f4" args="() const =0" -->
virtual unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d6a/classgfx_1_1_anim.html#379278a67c62314fd4977bb7c24f89f4">getSize</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retourne le nombre de frame de l'animation. <br></td></tr>
<tr><td colspan="2"><br><h2>Attributs protégés</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="128611eeddd8cc97a147851ecead0b9f"></a><!-- doxytag: member="gfx::Anim::m_time" ref="128611eeddd8cc97a147851ecead0b9f" args="" -->
<a class="el" href="../../db/d43/classcore_1_1_pausable_clock.html">core::PausableClock</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d6a/classgfx_1_1_anim.html#128611eeddd8cc97a147851ecead0b9f">m_time</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Timer de l'animation. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Description détaillée</h2>
Implémente la gestion des animation selon le temps. 
<p>Définition à la ligne <a class="el" href="../../de/d81/_anim_8h-source.html#l00014">14</a> du fichier <a class="el" href="../../de/d81/_anim_8h-source.html">Anim.h</a>.</p>
<hr>La documentation de cette classe a été générée à partir du fichier suivant :<ul>
<li>C:/Documents and Settings/israhal17/Bureau/devel/HeroWar/include/gfx/<a class="el" href="../../de/d81/_anim_8h-source.html">Anim.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Généré le Wed Feb 4 02:28:42 2009 pour Hero War par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="../../doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>
